package main.java.sq;

import java.util.Collection;
import java.util.List;


public class Sistema {

	/**
	 * @uml.property  name="casilla"
	 * @uml.associationEnd  multiplicity="(0 -1)" aggregation="composite" inverse="sistema:sq.Casilla"
	 */
	private List<Casilla> casilla;

	/**
	 * Getter of the property <tt>casilla</tt>
	 * @return  Returns the casilla.
	 * @uml.property  name="casilla"
	 */
	public List<Casilla> getCasilla() {
		return casilla;
	}

	/**
	 * Setter of the property <tt>casilla</tt>
	 * @param casilla  The casilla to set.
	 * @uml.property  name="casilla"
	 */
	public void setCasilla(List<Casilla> casilla) {
		this.casilla = casilla;
	}

		
		/**
		 */
		public Casilla getCasillaPorID(int id){
			Casilla c=new Casilla();
		for(int i=0;i<casilla.size();i++){
			if(casilla.get(i).getId()==id){
				c=casilla.get(i);
			}
		}
		return c;	
		}

	
	

}
